package com.game.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author lvhao
 * @since 2020-07-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel
public class ActivationCode extends Model<ActivationCode> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id，自动生成")
    private Integer id;

    /**
     * 激活码
     */
    @ApiModelProperty(value = "激活码")
    private String code;

    /**
     * 奖励-物品id
     */
    @ApiModelProperty(value = "物品id")
    private Integer itemId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "物品数量")
    private Integer itemNum;

    /**
     * 金币
     */
    @ApiModelProperty(value = "金币")
    private Integer gold;

    /**
     * 点券
     */
    @ApiModelProperty(value = "点券")
    private Integer counting;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
